﻿public class OrderDetails {
    public string client;
    public Product product;

    public OrderDetails(string client, Product product) {
        this.client = client;
        this.product = product;
    }

    public string ToString() {
        return $"Details\nClient:{client} Product:{product.ToString()}";
    }

    public override bool Equals(object? obj) {
        var other = obj as OrderDetails;
        return client.Equals(other.client) && product.Equals(other.product);
    }
}